<?php

namespace common\model;

use think\model\RelationModel;

class VersionCheckListModel extends RelationModel
{

    //自动验证
    protected $_validate = [
        ['version_id', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT],//必须字段
        ['check_list_id', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT],//必须字段
        ['content', '', '', self::MUST_VALIDATE, 'require', self::MODEL_INSERT],//必须字段
    ];

    //自动完成
    protected $_auto = [
//        ['is_pass', 'no', self::MODEL_INSERT, 'string'],
        ['review_tools', 'online', self::MODEL_INSERT, 'string'],
        ['uuid', 'create_uuid', self::MODEL_INSERT, 'function'],
    ];


}
